package com.mxpio.erp.common.asset.service;

import com.mxpio.erp.common.asset.entity.BorrowOutMaterialFlow;
import com.mxpioframework.system.service.BaseService;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;

public interface BorrowOutMaterialFlowService extends BaseService<BorrowOutMaterialFlow>{

    @Transactional(readOnly = true)
    BigDecimal getReturnedSumQuantityByLineNo(String applyBizNo, String applyBizLineNo);

    @Transactional(readOnly = true)//查询借出流水对应的已归还数量合计
    BigDecimal getSingleOutFlowLotReturnedSum(String applyBizNo, String applyBizLineNo,String lotNo) ;
}
